
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class WelfareSignCfg : public ManualSingleton <WelfareSignCfg>
{
	friend ManualSingleton <WelfareSignCfg>;
public:
	WelfareSignCfg();
	~WelfareSignCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const WelfareSignCfgInfo *GetWelfareSignCfgInfo(int32_t id);
	const WelfareSignCfgMap *GetWelfareSignCfgMap() { return &m_WelfareSignCfgMap; }
private:
	WelfareSignCfgMap m_WelfareSignCfgMap;
};

#define  g_MakeWelfareSignCfgTable() (WelfareSignCfg::Instance())
#define  g_GetWelfareSignCfgTable() (WelfareSignCfg::GetInstance())
#define  g_DelWelfareSignCfgTable() (WelfareSignCfg::Destroy())